<?php
// +----------------------------------------------------------------------
// | Quotes [ 只为给用户更好的体验]**[我知道发出来有人会盗用,但请您留版权]
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 零度  <2109877665@qq.com>          盗用不留版权,你就不配拿去!
// +----------------------------------------------------------------------
// | Date: 2019年08月20日
// +----------------------------------------------------------------------

$title='授权商管理';
include './Head.php';

$count1=$DB->query("SELECT count(*) from `pay_check` where `daili_id`='{$dailirow['qq']}'")->fetchColumn();
$count3=$DB->query("SELECT count(nums) from pay_daili where status='1' and `qq`='{$dailirow['qq']}'")->fetchColumn();

?>
      <div class="panel panel-success">
        <div class="panel-heading"><h3 class="panel-title">数据中心</h3></div>
		<div class="panel-body">
        <table class="table table-bordered"><thead>
			<tr height="25">
			<td align="center"><font color="#808080"><b><span class="glyphicon glyphicon-tint"></span>旗下授权总数：</b></br><span id="count1"><?php echo $count1?></span>个</font></td>
			<td align="center"><font color="#808080"><b><i class="glyphicon glyphicon-exclamation-sign"></i>剩余授权额度：</b></span></br><span id="count3"><?php echo ($dailirow['nums'])?></span>个</font></td>
			</tr>
          </table>
	    </div>
		</div>
      </div>
      <!--
	  <div class="panel panel-primary">
	  <div class="panel-body">
          <h4><span class="glyphicon glyphicon-info-sign"></span> 注意事项</h4>
1.每笔交易会有手续费<br/>2.请确保结算信息，否则资金可能无法成功到账！<br/>3.系统集成，问题反馈请联系客服
        </div>
      </div-->
	  <div class="panel panel-info">
        <div class="panel-heading"><h3 class="panel-title">服务器数据</h3></div>
		<div class="panel-body">
        <ul class="list-group">
		<li class="list-group-item">
			<b>PHP 版本：</b><?php echo phpversion() ?>
			<?php if(ini_get('safe_mode')) { echo '线程安全'; } else { echo '非线程安全'; } ?>
		</li>
		<li class="list-group-item">
			<b>MySQL 版本：</b><?php $DB_VERSION = $DB->query("select VERSION()")->fetch(); echo $DB_VERSION[0]; ?>
		</li>
		<li class="list-group-item">
			<b>服务器软件：</b><?php echo $_SERVER['SERVER_SOFTWARE'] ?>
		</li>
		<!--li class="list-group-item">
			<b>服务器真实IP：</b><?php echo get_curl($conf['Instant_url'].'api/instant_api.php?do=Get_Ip'); ?>
		</li-->
	</ul>
		</div>
      </div>
    </div>
  </div>